Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update gautamkrishnar/keepalive-workflow action to v2 - autoclosed #43

Closed

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 10, 2024

Mend Renovate

This PR contains the following updates:

Package Type Update Change
gautamkrishnar/keepalive-workflow action major 1.2.6 -> 2.0.5

Release Notes

gautamkrishnar/keepalive-workflow (gautamkrishnar/keepalive-workflow)

v2.0.5

Compare Source

What's Changed

  • Fixes: Action does not complete and causes the parent workflow to fail. (triggered by pull request from fork) #​42
  • Fixed warnings

Full Changelog: gautamkrishnar/keepalive-workflow@2.0.4...2.0.5

v2.0.4

Compare Source

What's Changed

  • NPM Package bug fixes

Full Changelog: gautamkrishnar/keepalive-workflow@2.0.3...2.0.4

v2.0.3

Compare Source

What's Changed

Full Changelog: gautamkrishnar/keepalive-workflow@2.0.2...2.0.3

v2.0.2

Compare Source

What's Changed

  • Adding parent workflow name to the output

Full Changelog: gautamkrishnar/keepalive-workflow@2.0.1...2.0.2

v2.0.1

Compare Source

What's Changed

Added multi workflow keepalive

Now you can keep multiple Github actions alive using a single keepalive workflow. Previously you had to add separate keepalive workflow to all the cronjob-triggered Github actions for this to happen.

Example

Let's assume that you have some build workflows:

  • .github/workflows/build1.yml
name: Build 20

on:
  schedule:
    - cron: "0 0 * * *"

jobs:
  publish-npm:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: "20"
          cache: "yarn"
      - run: yarn install --frozen-lockfile
      - run: yarn build
  • .github/workflows/build2.yml
name: Build 19

on:
  schedule:
    - cron: "0 0 * * *"

jobs:
  publish-npm:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: "19"
          cache: "yarn"
      - run: yarn install --frozen-lockfile
      - run: yarn build

You can now keep both of these workflows active using the following keepalive workflow code:
.github/workflows/keepalive.yml

name: Keepalive Workflow
on:
  schedule:
    - cron: "0 0 * * *"
permissions:
  actions: write
jobs:
  cronjob-based-github-action:
    name: Keepalive Workflow
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: gautamkrishnar/keepalive-workflow@v2
        with:
          workflow_files: "build1.yml, build2.yml"
          time_elapsed: "0"

Result:
result

Other changes

New Contributors

Full Changelog: gautamkrishnar/keepalive-workflow@2.0.0...2.0.1

v2.0.0

Compare Source

Version 2 🎉 ✨

For a long time, this workflow was using a dummy commit approach to keep the repositories active, this method was effective but came with a side effect. It automatically creates a dummy commit every 50 days, which makes this workflow un-usable for many serious open-source projects, since they heavily rely on commit history. To keep the repository active, this was the only option when I created this workflow.

GitHub made some changes recently, now simply calling the GitHub Action API's enable API Call will keep the workflow active indefinitely. This feature was added to this workflow as an opt-in feature for people to use. Version 2 will make this method the default method for the keep-alive workflow.

People who are using v1 and master tags of this workflow will continue using the dummy commit method since the newly added API-based method requires explicit permission for the API Keys for it to function.

Migrating from v1 to v2

If you are an existing user which used this workflow's v1 version, you can easily migrate to v2 by simply updating the permissions key in your workflow:

Change:

permissions:
  contents: write

to

permissions:
  actions: write

And change the workflow's version from gautamkrishnar/keepalive-workflow@v1 or gautamkrishnar/keepalive-workflow@master to gautamkrishnar/keepalive-workflow@v2. This will automatically start using the workflow's API based method. No more dummy commits 🕺 .

What's Changed

  • Updated the workflow to v2 to make use of API keepalive method by default instead of dummy commit based method

Full Changelog: gautamkrishnar/keepalive-workflow@v1...2.0.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from seebeen as a code owner March 10, 2024 01:48
@renovate renovate bot force-pushed the renovate/gautamkrishnar-keepalive-workflow-2.x branch from e68d432 to 185c9fe Compare March 11, 2024 03:08
@renovate renovate bot force-pushed the renovate/gautamkrishnar-keepalive-workflow-2.x branch from 185c9fe to 592e856 Compare March 25, 2024 03:18
@renovate renovate bot force-pushed the renovate/gautamkrishnar-keepalive-workflow-2.x branch 2 times, most recently from 05ce841 to 01fe8a3 Compare April 8, 2024 03:34
@renovate renovate bot force-pushed the renovate/gautamkrishnar-keepalive-workflow-2.x branch 2 times, most recently from 51bb16f to 320862b Compare April 15, 2024 03:32
@renovate renovate bot force-pushed the renovate/gautamkrishnar-keepalive-workflow-2.x branch 2 times, most recently from 2b5c50a to f883686 Compare April 22, 2024 22:14
@renovate renovate bot force-pushed the renovate/gautamkrishnar-keepalive-workflow-2.x branch 3 times, most recently from 65c65d2 to a4bf21a Compare May 19, 2024 12:45
@renovate renovate bot force-pushed the renovate/gautamkrishnar-keepalive-workflow-2.x branch from a4bf21a to 0695ee1 Compare May 24, 2024 14:11
@renovate renovate bot changed the title chore(deps): update gautamkrishnar/keepalive-workflow action to v2 chore(deps): update gautamkrishnar/keepalive-workflow action to v2 - autoclosed Jul 9, 2024
@renovate renovate bot closed this Jul 9, 2024
@renovate renovate bot deleted the renovate/gautamkrishnar-keepalive-workflow-2.x branch July 9, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants